<%@ page import="java.util.Enumeration" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ page import="org.mobile.utils.session.Session" %>
<%
	//自带代码
    Enumeration names = request.getParameterNames();
    StringBuffer sb = new StringBuffer();
    while (names.hasMoreElements()) {
        String name = (String) names.nextElement();
        if (sb.length() > 0) {
            sb.append("&");
        }
        String val = request.getParameter(name);
        if (val != null) {

            sb.append(name);
            sb.append("=");
            sb.append(new String(val.getBytes(), "GBK"));
        }
    }
    String url = request.getContextPath()+"/plug-in/cif2/camera_upload.jsp?"+sb.toString();

%>
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta http-equiv="x-ua-compatible" content="IE=7">
<script language="javascript">
var ua = navigator.userAgent; 

var isIE6=false; 
if ( ua.indexOf("MSIE 6")  !=-1) { 
isIE6 = true;  
} 


	var arg=window.dialogArguments;
	function onMainLoad()
	{
                var h=520,w=670;
                if(isIE6){h+=50;w+=20;}
		window.dialogHeight = h+"px";
		window.dialogWidth  = w+"px";
		movetocenter(window,h,w);
	}
	function movetocenter(win,h,w)
	{
		var aw = screen.availWidth;
		var ah = screen.availHeight;
		win.dialogLeft = (aw-w)/2;
		win.dialogTop = (ah-h)/2;
	}
	</script>
</head>
    <frameset rows="0,*" frameborder="NO" border="0" framespacing="0">
        <frame src="about:blank" name="topFrame" scrolling="NO" noresize>
        <frame src="<%=url%>" name="mainFrame" id="mainFrame" onload="onMainLoad()" scrolling="NO" border="0" style="margin:0;padding:0;">
    </frameset>
<noframes>
    <body>
    <script type="text/javascript">
        <%--self.location = "<%=url%>";--%>
    </script>
    </body>
</noframes>
</html>